<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class B_Controller extends CI_Controller
{
	public function __construct()
	{
		parent::__construct();
	}
	
	/*
	*检查登录状态
	*/
	public function check_login()
	{
		$admin_id = $this->session->userdata('id');
		if(empty($admin_id))
		{
			return redirect('login');
		}
	}
}
?>